package Vista;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import Controlador.Controlador;

import java.awt.Font;

public class Dialogo_Imagen extends JDialog {
	
	// ATRIBUTOS
	private Controlador control;
	// Paneles
	private JPanel panelCentral;
	private JPanel panelInf;
	private JLabel etiquetaImagen;
	
	// Botones
	private JButton botonCerrar;

	/**
	 * Create the dialog.
	 */
	public Dialogo_Imagen(Controlador control) {
		this.setBounds(100, 100, 800, 650);
		this.setLayout(new BorderLayout());
		
		// Instanciar panelCentral
		panelCentral = new JPanel();
		panelCentral.setLayout(new FlowLayout(FlowLayout.CENTER));
		//panelCentral.setBorder(new EmptyBorder(5, 5, 5, 5));
		this.add(panelCentral, BorderLayout.CENTER);
		
		// Instanciar panelInf
		panelInf = new JPanel();
		panelInf.setLayout(new FlowLayout(FlowLayout.RIGHT));
		this.add(panelInf, BorderLayout.SOUTH);
		
		// Instanciar botones
		botonCerrar = new JButton("Cerrar");
		botonCerrar.setFont(new Font("Tahoma", Font.PLAIN, 20));
		botonCerrar.setActionCommand("Cancel");
		panelInf.add(botonCerrar);
		
	}
	
	
	

}
